<?php
require_once('../../sys/C_base.php');
C_base::yn_file('base'.DS.'class.util.php');
$id = C_base::dybase('func')->_get('id');
if(@$id){
	$cha = C_base::M('material.photo')->get($id);
}else{
	$cha = file_get_contents(IMG.'moren.png');
}
header('Content-Type:image/jpeg');//设定输出类型
print_r($cha);